package lab02.Test11;

public class Square extends Rectangle{
    double a;
    double growth=a;
    double wide=a;
    double diagonal;
    double area;
    double circumference;

    @Override
    public void printMyWay() {
        System.out.println(area=a*a);
        System.out.println(circumference=4*a);
        System.out.println(growth=a);
        System.out.println(diagonal=Math.sqrt(2*a*a));
    }
}